/**
 * 学年学期配置
 * @chengbozheng  10.25
 */

import request from "@/utils/request.js";

// 查询学年学期列表
export function getSchoolYearApi(data) {
    return request({
      url: "/edu/schoolYearSemester/list",
      method: "POST",
      params: data,
    })
}

// 删除
export function removeSchoolYearApi(data) {
    return request({
      url: "/edu/schoolYearSemester/remove",
      method: "POST",
      params: data,
    })
}

// 添加 
export function addSchoolYearApi(data) {
    return request({
      url: "/edu/schoolYearSemester/add",
      method: "POST",
      params: data,
    })
}


// 修改
export function editSchoolYearApi(data) {
    return request({
      url: "/edu/schoolYearSemester/edit",
      method: "POST",
      params: data,
    })
}

// 修改状态
export function editSchoolYearSwitchApi(data) {
    console.log(data)
    return request({
      url: `/edu/schoolYearSemester/editStatus`,
      method: "POST",
      params:data
    })
}

// 添加学期
export function addSchoolYearItemApi(data) {
  console.log(data)
  return request({
    url: `/edu/schoolSemester/add`,
    method: "POST",
    params:data
  })
}